package org.yefei.homeworkday21.two;

public class Staff {
	private String name;
	private int age;
	private String sex;
	private String position;// 职务
	private double salary;

	public Staff() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public Staff(String name, int age, String sex, String position, double salary) {
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.position = position;
		this.salary = salary;
	}

	@Override
	public String toString() {
		return "号员工 [姓名=" + name + ", 年龄=" + age + ", 性别=" + sex + ", 职务=" + position + ", 薪水=" + salary + "]";
	}
}
